<template>
	<view>
		
		<view class="agreementDetail_box">
			<!-- <view class="tit">{{agreementDetail.title}}</view>
			<view class="date">{{agreementDetail.addtime_str}}</view> -->
			<view class="content">
				<u-parse :html="agreementDetail.content"></u-parse>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				agreementDetail: {},
			}
		},
		onLoad(option) {
			var _this = this;
			_this.id=option.id
			_this.getAgreementDetail();
		},
		onShow: function() {
			
		},
		onReady() {
		},
		methods: {
			// 获取关于我们
			getAgreementDetail() {
				var _this = this;
				_this.$u.get('/api/article.system/getDetail', {
					id: _this.id,
				}).then(res => {
					console.log("==获取关于我们==");
					console.log(res);
					uni.hideLoading();
					if(res.data.is_content==100){
						uni.setStorageSync('link', res.data.link);
						uni.navigateTo({
							url:'/pages/message/divWebView'
						})
					}
					_this.agreementDetail = res.data;
				}).catch(res => {
					console.log(res);
				})
			},
		}
	}
</script>

<style scoped>
	.agreementDetail_box {
		padding: 30rpx 20rpx;
		background-color: #fff;
		overflow: hidden;
		
	}

	.tit {
		font-size: 32rpx;
		font-weight: bold;
		color: #333;
		text-align: left;
	}

	.date {
		font-size: 24rpx;
		color: #666;
		text-align: left;
		margin: 20rpx 0;
	}

	.content {
		
		width: 100%;
		overflow: hidden;
	}
	.content image{
		max-width: 100%;
	}
</style>
